package com.mdd.admin.service.index;

import com.mdd.admin.validate.index.IndexVisitParam;

/**
 * 首页浏览记录服务接口类
 * @author panweiliang
 */
public interface IIndexVisitService {



    /**
     * 首页浏览记录新增
     *
     * @author panweiliang
     * @param terminal 参数
     * @param ip
     */
    void addOrUpdate(Integer terminal, String ip);

    /**
     * 获取总的用户总访问量
     *
     * @author panweiliang
     */
    Long getTotalVisitCount();

    Long getTotalUserVisitCount();

    Long getVisitCount(Long start, Long end);

    Long getUserVisitCount(Long start, Long end);


}
